<?php

namespace App\Models\Mes;

use App\Models\HR\Employee;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class AuthUser extends Base
{
    use HasFactory;

    protected $table = "auth_users";

    public function employee()
    {
        return $this->belongsTo(Employee::class, "code", "Code");
    }

    public function auth_roles()
    {
        return $this->hasMany(AuthUserRole::class, "user_id");
    }
}
